//
//  GlobelDefines.h
//  moon
//
//  Created by beyself on 16/6/6.
//  Copyright © 2016年 beyself. All rights reserved.
//

#ifndef GlobelDefines_h
#define GlobelDefines_h

#define kUIColorFromRGB(rgbValue) [UIColor \
    colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
    green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
    blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define SCREEN_WIDTH    [[UIScreen mainScreen] bounds].size.width
#define SCREEN_HEIGHT   ([[UIScreen mainScreen] bounds].size.height - 64)

#define APPDELEGATE     ((AppDelegate*)[[UIApplication sharedApplication] delegate])
#define IMG_DEFAULT             [UIImage imageNamed:@"icon_album"]


#define IMG_URL_0       @"http://120.27.129.233/ylbb/api/"
#define IMG_URL         @"http://120.27.129.233/ylbb/"

#define FONT_10         [UIFont systemFontOfSize:10]
#define FONT_12         [UIFont systemFontOfSize:12]
#define FONT_13         [UIFont systemFontOfSize:13]
#define FONT_14         [UIFont systemFontOfSize:14]
#define FONT_15         [UIFont systemFontOfSize:15]
#define FONT_16         [UIFont systemFontOfSize:16]
#define FONT_18         [UIFont systemFontOfSize:18]
#define FONT_20         [UIFont systemFontOfSize:20]
#define FONT_25         [UIFont systemFontOfSize:25]

#define WHITE            [UIColor whiteColor]
#define GRAY             kUIColorFromRGB(0x808080)
#define LINE             kUIColorFromRGB(0xCCCCCC)
#define BLACK            kUIColorFromRGB(0x404040)
#define BLUE             kUIColorFromRGB(0x3B5997)
#define ORANGE           kUIColorFromRGB(0xFFBF00)
#define RED              kUIColorFromRGB(0xD74B4B)
#define BG               kUIColorFromRGB(0xF4F4F4)
#define GREEN            kUIColorFromRGB(0xA6D910)
#define TEXT             kUIColorFromRGB(0x395994)

#define LOGIN_INFO      @"member_info"
#define ALL_MEMBER      @"all_member"

#endif /* GlobelDefines_h */
